package com.mojang.ld22.crafting;

import com.mojang.ld22.entity.Player;
import com.mojang.ld22.item.ArmorItem;

public class ArmorRecipe extends Recipe {
	private int level;

	public ArmorRecipe(int level) {
		super(new ArmorItem(level));
		this.level = level;
	}

	public void craft(Player player) {
		player.inventory.add(0, new ArmorItem(level));
	}
}
